﻿using System;

class MatrixUI
{
    static void Main()
    {
        Matrix matrixFirst = new Matrix(2, 2);
        matrixFirst[0, 0] = 1;
        matrixFirst[1, 1] = -12;
        Matrix matrixSecond = new Matrix(2, 2);
        matrixSecond[0, 1] = 2;
        matrixSecond[1, 1] = 24;

        // sum of two matrixes
        Matrix sum = matrixFirst + matrixSecond;
        Console.WriteLine(sum.ToString());

        // difference of two matrixes
        Matrix difference = matrixFirst - matrixSecond;
        Console.WriteLine(difference.ToString());

        // product of two matrixes
        Matrix product = matrixFirst * matrixSecond;
        Console.WriteLine(product.ToString());
    }
}
